# -*- coding: utf-8 -*-
"""
@Time ： 2024/4/28 15:50
@Auth ： gc
"""
import math

import numpy as np
import akshare as ak

# fund_etf_spot_em_df = ak.fund_etf_spot_em()
# print(fund_etf_spot_em_df[fund_etf_spot_em_df['代码'] == '159561'])
import requests

url = "https://88.push2.eastmoney.com/api/qt/clist/get"
params = {
    "pn":"1",
    "pz":"5000",
    "po":"1",
    "np":"1",
    "ut":"bd1d9ddb04089700cf9c27f6f7426281",
    "fltt":"2",
    "invt":"2",
    "wbp2u":"|0|0|0|web",
    "fid":"f3",
    "fs":"b:MK0021,b:MK0022,b:MK0023,b:MK0024",
    "fields":"f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f12,f13,f14,f15,f16,f17,f18,f20,f21,f23,f24,f25,f22,f11,f62,f128,f136,f115,f152",
    "_":"1672806290972",
}
r = requests.get(url, params = params)
data_json = r.json()
print(data_json)